home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-01-22 | 824 b | 25 lines | [TEXT/CWIE] |
- // ===========================================================================
- // CExep.h ©1996 Sunbay Development Group. All rights reserved.
- // ===========================================================================
- // Oct 31,1996
-
- #pragma once
-
- #include "CExeption.h"
-
- class CExep : public CExeption {
- Str255 mFile;
- short mLine;
- public:
- CExep(void);
- CExep(OSType inType, OSType inCode, char *inFile, short inLine);
- ~CExep();
- protected:
- virtual void CastomAlert(LDialogBox *inDialog);
- virtual StringPtr ExplaneType(void);
- virtual StringPtr ExplaneCode(void);
- };
-
- #define ResExeption(inType) { if(::ResError() != noErr) throw(CExep(inType, (OSType) ::ResError(), __FILE__, __LINE__)); }
- #define Exeption(inType, inCode) { throw(CExep(inType, (OSType) inCode, __FILE__, __LINE__)); }
-